package com.css.zfzx.sjcj.modules.hddcISCatalog.repository;

import com.css.zfzx.sjcj.modules.hddcISCatalog.repository.entity.HddcIscatalogEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zyb
 * @date 2020-11-28
 */
public interface HddcIscatalogRepository extends JpaRepository<HddcIscatalogEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Iscatalog where project_name in :projectIds")
    List<HddcIscatalogEntity> queryHddcIscatalogsByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Iscatalog where task_name in :projectIds")
    List<HddcIscatalogEntity> queryHddcIscatalogsByTaskId(List<String> projectIds);
}
